package Controller
{
	import Model.ComplexSolidComponent;
	import Model.TransparentComponent;
	
	import mx.core.FlexGlobals;

	public class TransparentComponentController
	{
		public function TransparentComponentController()
		{
		}
		
		public function updateTransparentComponentDescription(description:String, transparentComponent:TransparentComponent):void
		{
			transparentComponent.description = description;	
		}
		
		public function updateTransparentComponentParentComponent(parentComponentId:String, transparentComponent:TransparentComponent):void
		{
			transparentComponent.parentComponent = parentComponentId;
		}
		
		public function updateTransparentComponentQuantity(qty:Number, transparentComponent:TransparentComponent):void	
		{
			transparentComponent.quantity = qty;
		}
		
		public function updateTransparentComponentLength(length:Number, transparentComponent:TransparentComponent):void
		{
			transparentComponent.length = length;
		}
		
		public function updateTransparentComponentHeight(height:Number, transparentComponent:TransparentComponent):void
		{
			transparentComponent.height = height;
		}
		
		public function updateTransparentComponenetEstimation(estimation:Number, transparentComponent:TransparentComponent):void
		{
			transparentComponent.estimation = estimation;
		}
		
		public function updateTransparentComponentsStatus():void
		{
			FlexGlobals.topLevelApplication.overviewPalette.transparentComponentsStatus()
		}
	}
}